<template>
  <div class="container">
    <xy-table :columns="columns" :api="api">
      <template #operation>
        <el-table-column
          key="ope"
          :label="$language.local('操作')"
          width="126"
          align="center"
        >
          <template slot-scope="scope">
            <el-row class="center">
              <delete-row :row="scope.row" :api="api.deleteById"></delete-row>
            </el-row>
          </template>
        </el-table-column>
      </template>
    </xy-table>
  </div>
</template>

<script>
import API from "../../plugins/api";
export default {
  data() {
    return {
      api: new API("/api/log/GetList"),
      columns: {
        // user_id: 13,
        user_name: "yjs",
        action_type: "View",
        remark: "查询账号总余额及企业余额",
        user_ip: "222.244.79.177",
        add_time: "2021-06-07T10:39:00",
      },
    };
  },
  created() {
    // this.api.getList = "GetRoleList";
  },
};
</script>

<style lang="less" scoped></style>
